<%--
  Created by IntelliJ IDEA.
  User: wdnmd
  Date: 2020/7/7
  Time: 15:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <base href="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/"/>
    <link rel="icon" href="../../static/images/favicon.ico">
    <link rel="stylesheet" href="../../static/lib/layui-v2.5.5/css/layui.css" media="all">
    <link rel="stylesheet" href="../../static/css/layuimini.css" media="all">
    <link rel="stylesheet" href="../../static/css/themes/default.css" media="all">
    <link rel="stylesheet" href="../../static/lib/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
</head>
<body>
<%--添加--%>
<div id="addpolicies" >
    <form class="layui-form layui-form-pane" action="addwarrr.jsp">
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend>交强险信息</legend>
        </fieldset>
        <div class="layui-form">
            <table class="layui-table">
                <colgroup>
                    <col width="150">
                    <col width="150">
                    <col width="150">
                    <col>
                </colgroup>
                <thead>
                <tr>
                    <th></th>
                    <th>是否投保</th>
                    <th>保险费(元)</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>交强险</td>
                    <td>
                        <div class="layui-form-item"><div class="layui-input-block">
                            <input name="sex" type="checkbox"  value="交强险">
                        </div></div>
                    </td>
                    <td>950</td>
                </tr>
                </tbody>
            </table>
        </div>


        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend>商业险信息</legend>
        </fieldset>
        <div class="layui-form">
            <table class="layui-table">
                <colgroup>
                    <col width="150">
                    <col width="150">
                    <col width="150">
                    <col width="150">
                </colgroup>
                <thead>
                <tr>
                    <th>基本险</th>
                    <th>投保金额/责任限额</th>
                    <th>是否投保</th>
                    <th>保险费(元)</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>机动车损失险</td>
                    <td>39900</td>
                    <td> <div class="layui-form-item"><div class="layui-input-block">
                        <input name="sex" type="checkbox"  value="39900">
                    </div></div></td>
                    <td>701.1</td>
                </tr>
                <tr>
                    <td>第三者责任保险</td>
                    <td>50万</td>
                    <td> <div class="layui-form-item"><div class="layui-input-block">
                        <input name="sex" type="checkbox"  value="1014.12">
                    </div></div></td>
                    <td>1014.12</td>
                </tr>
                <tr>
                    <td>车上人员责任险(司机)</td>
                    <td>5万</td>
                    <td>
                        <div class="layui-form-item"><div class="layui-input-block">
                        <input name="sex" type="checkbox"  value="54.46">
                        </div></div></td>
                    <td>54.46</td>
                </tr>
                <tr>
                    <td>车上人员责任险(乘客)</td>
                    <td>1万</td>
                    <td>
                        <div class="layui-form-item"><div class="layui-input-block">
                        <input name="sex" type="checkbox"  value="54.46">
                        </div></div></td>
                    <td>143.21</td>
                </tr>
                <tr>
                    <td>机动车盗抢险</td>
                    <td>16199.4</td>
                    <td> <div class="layui-form-item"><div class="layui-input-block">
                        <input name="sex" type="checkbox"  value="54.46">
                    </div></div></td>
                    <td>141.73</td>
                </tr>
                </tbody>
            </table>
            <table class="layui-table">
                <colgroup>
                    <col width="150">
                    <col width="150">
                    <col width="150">
                    <col width="150">
                </colgroup>
                <thead>
                <tr>
                    <th>附加险</th>
                    <th>投保金额/责任限额</th>
                    <th>是否投保</th>
                    <th>保险费(元)</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>玻璃单独破碎险</td>
                    <td>国产玻璃</td>
                    <td> <div class="layui-form-item"><div class="layui-input-block">
                        <input name="sex" type="checkbox"  value="701.1">
                    </div></div></td>
                    <td>701.1</td>
                </tr>
                <tr>
                    <td>车身划痕损失险</td>
                    <td>50万</td>
                    <td> <div class="layui-form-item"><div class="layui-input-block">
                        <input name="sex" type="checkbox"  value="1014.12">
                    </div></div></td>
                    <td>1014.12</td>
                </tr>
                <tr>
                    <td>自然损失险</td>
                    <td>5万</td>
                    <td> <div class="layui-form-item"><div class="layui-input-block">
                        <input name="sex" type="checkbox"  value="54.46">
                    </div></div></td>
                    <td>54.46</td>
                </tr>
                <tr>
                    <td>车上人员责任险(乘客)</td>
                    <td>1万</td>
                    <td> <div class="layui-form-item"><div class="layui-input-block">
                        <input id="sexxx" name="sex" type="checkbox"  value="143.21">
                    </div></div></td>
                    <td><div id="a1">143.21</div></td>
                </tr>
                <tr>
                    <td>机动车盗抢险</td>
                    <td>16199.4</td>
                    <td> <div class="layui-form-item"><div class="layui-input-block">
                        <input name="sex" type="checkbox"  value="141.73">
                    </div></div></td>
                    <td>141.73</td>
                </tr>
                </tbody>
            </table>
        </div>
        <button id="tj">完成</button>
    </form>
</div>
<%--添加--%>

<script src="../../static/lib/layui-v2.5.5/layui.js" charset="utf-8"></script>
<script src="../../static/js/lay-config.js" charset="utf-8"></script>
<script>
    layui.use(['form', 'layedit', 'laydate','layer'], function() {
        var form = layui.form
            , layer = layui.layer
            , layedit = layui.layedit
            , laydate = layui.laydate
            , $ = layui.jquery
            , layer = layui.layer;
       /* var objjj = $('#sexx');*/
        var sexv = $('#a1').html();
        $('#tj').click(function () {
            alert($('#a1').html());
            $('#sexxx').val(sexv);
            alert($('#sexxx').val());

        })



    });
</script>
</body>
</html>
